<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<script type="text/javascript">
			//regexp()正则表达式
			//一
			var stu=new Object();
			stu.name="邓太原";
			stu.age=18;
			stu.address="山西太原";
			stu.showName=function(){
				document.write("stu的姓名："+this.name);
			}
			stu.showName();
			var stu1=new Object();
			stu1.name="王济南";
			stu1.age=20;
			stu1.address="山东济南";
			stu1.showName=function(){
				document.write("<br />stu1的姓名："+this.name);
			}
			stu1.showName();
			//二
			var stu3={
				name:"李郑州",
				age:97,
				address:"河南邓州",
				showname:function(){
					document.write("<br />stu3的姓名："+this.name);
				}
			}
			stu3.showname();
			//三
			function tea(name,age,address){
				this.name=name;
				this.age=age;
				this.address=address;
				this.showName=function(){
					document.write("<br />tea的姓名："+this.name);
				}
			}
			var t1=new tea("王老师",28,"山东聊城");
			var t2=new tea("李老师",45,"山东济南");
			var t3=new tea("赵老师",56,"山东济宁");
			t1.showName();
			t2.showName();
			t3.showName();
			
		</script>
	</body>
</html>
